package top.fzqblog.music.event;



import java.util.List;

import top.fzqblog.music.model.Song;

/**
 * Created by 抽离 on 2017/10/22 0022.
 */

public class PlayEvent {
    public enum PlayAction{
        PLAY, STOP, RESUME, NEXT, PREVIOES, SEEK
    }

    private Song song;

    private List<Song> songList;

    private int index;

    private PlayEvent.PlayAction playAction;

    public PlayEvent() {

    }

    public PlayEvent(PlayEvent.PlayAction playAction) {
        this.playAction = playAction;
    }

    public PlayEvent(Song song, List<Song> songList, int index, PlayEvent.PlayAction playAction) {
        this.song = song;
        this.songList = songList;
        this.index = index;
        this.playAction = playAction;
    }

    public Song getSong() {
        return song;
    }

    public void setSong(Song song) {
        this.song = song;
    }

    public List<Song> getSongList() {
        return songList;
    }

    public void setSongList(List<Song> songList) {
        this.songList = songList;
    }

    public PlayEvent.PlayAction getPlayAction() {
        return playAction;
    }

    public void setPlayAction(PlayEvent.PlayAction playAction) {
        this.playAction = playAction;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    @Override
    public String toString() {
        return "PlayEvent{" +
                "song=" + song +
                ", songList=" + songList +
                ", index=" + index +
                ", playAction=" + playAction +
                '}';
    }
}
